<?php

namespace Modules\Common\Models\Validation;


/**
 *@property int $id
 *@property string $name
 *@property int $parent_id
 *@property string $created_at
 *@property string $updated_at
 *@property string $deleted_at
 */
trait DistrictValidation 
{


    public function createRules()
    {
         return [
            'rules' => [
                'name'=>'between:0,16',
                'parent_id'=>'integer',
                
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }

    public function updateRules()
    {
         return [
            'rules' => [
                'name'=>'between:0, 16',
                'parent_id'=>'integer',
                
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }


}
